#ifndef __IOTHREAD_H
#define __IOTHREAD_H

#include <pthread.h>

typedef int (* cconf_message_callback_fcn_t)(char ** out, char * in, void * arg);

typedef struct cconf_io_thread_s cconf_io_thread_t;


cconf_io_thread_t * cconf_io_thread_create(
	char * sockname, cconf_message_callback_fcn_t msg_cb, void * cb_arg
);

void cconf_io_thread_finish(cconf_io_thread_t * i);

#endif
